package org.fluidripple.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.fluidripple.socket.session.Magnification;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
public class DeviceEntity {

    //设备序列号
    private String deviceSerializable;
    //连接时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date connectTime;
    //是否开始采集数据
    private boolean collectData;
    private String sessionId;
    //放大倍数
    private Magnification magnification;
    //客户端地址
    private String remoteAddressStr;
    //采样频率
    private Integer samplingFrequency;
}
